package com.ruoyi.back.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程信息对象 curriculum
 * 
 * @author luguanqing
 * @date 2021-04-06
 */
@ApiModel("课程信息实体")
public class Curriculum extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty(value = "主键id")
    private String id;

    /** 课程名称 */
    @ApiModelProperty(value = "课程名称")
    @Excel(name = "课程名称")
    private String name;

    /** 课程类型 */
    @ApiModelProperty(value = "课程类型")
    @Excel(name = "课程类型")
    private String type;

    /** 课程价格 */
    @ApiModelProperty(value = "课程价格")
    @Excel(name = "课程价格")
    private BigDecimal cost;

    /** 课程宣传图 */
    @ApiModelProperty(value = "课程宣传图")
    @Excel(name = "课程宣传图")
    private String introduceimg;

    /** 订购人数 */
    @ApiModelProperty(value = "订购人数")
    @Excel(name = "订购人数")
    private Long ordernum;

    /** 访问人数 */
    @ApiModelProperty(value = "访问人数")
    @Excel(name = "访问人数")
    private String visit;

    /** 课程链接 */
    @ApiModelProperty(value = "课程链接")
    @Excel(name = "课程链接")
    private String url;

    /** 课程介绍 */
    @ApiModelProperty(value = "课程介绍")
    @Excel(name = "课程介绍")
    private String introducecontent;

    /** 课程上传日期 */
    @ApiModelProperty(value = "课程上传日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "课程上传日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uptime;

    /** 课程更新日期 */
    @ApiModelProperty(value = "课程更新日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "课程上传日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatetime;

    /** 课程状态 */
    @ApiModelProperty(value = "课程状态")
    @Excel(name = "课程状态")
    private String state;

    /** 非会员视频url */
    @ApiModelProperty(value = "非会员视频url")
    @Excel(name = "非会员视频url")
    private String shorturl;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }
    public void setIntroduceimg(String introduceimg) 
    {
        this.introduceimg = introduceimg;
    }

    public String getIntroduceimg() 
    {
        return introduceimg;
    }
    public void setOrdernum(Long ordernum) 
    {
        this.ordernum = ordernum;
    }

    public Long getOrdernum() 
    {
        return ordernum;
    }
    public void setVisit(String visit) 
    {
        this.visit = visit;
    }

    public String getVisit() 
    {
        return visit;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setIntroducecontent(String introducecontent) 
    {
        this.introducecontent = introducecontent;
    }

    public String getIntroducecontent() 
    {
        return introducecontent;
    }
    public void setUptime(Date uptime) 
    {
        this.uptime = uptime;
    }

    public Date getUptime() 
    {
        return uptime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getShorturl() {
        return shorturl;
    }

    public void setShorturl(String shorturl) {
        this.shorturl = shorturl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("cost", getCost())
            .append("introduceimg", getIntroduceimg())
            .append("ordernum", getOrdernum())
            .append("visit", getVisit())
            .append("url", getUrl())
            .append("introducecontent", getIntroducecontent())
            .append("uptime", getUptime())
            .append("updatetime", getUpdatetime())
            .append("state", getState())
            .append("shorturl", getShorturl())
            .toString();
    }
}
